<?php
/**
 * Created by PhpStorm.
 * User: wangp
 * Date: 2016/9/17
 * Time: 23:33
 */
header("Access-Control-Allow-Origin: *");
require_once __DIR__ . "/JSSDK.php";
$url = $_GET['uri'];
//$jssdk = new JSSDK("wxca2816298afcf527", "1fd22df350beff66bb55c3a1478ae077", $url);
$jssdk = new JSSDK("wxc9abd79c9ddd15e3", "ad30813b82c81ebe139aff154b7bb85c", $url);
$signPackage = $jssdk->GetSignPackage();
echo json_encode($signPackage);